package com.woniuxy.microsysserver.feign;
import com.woniuxy.bean.current.PageInfos;
import com.woniuxy.microsysserver.feignfullback.CurrentFoundFullBackFactary;
import com.woniuxy.microsysserver.feignfullback.GoldFullBackFactary;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
//活期接口
@FeignClient(value = "cd-finance-micro-current-server",fallbackFactory = CurrentFoundFullBackFactary.class)
public interface CurrentFoundFeign {
    @PostMapping(value = "/currentOrderInfo/getUserCurrentInfo",produces = MediaType.APPLICATION_JSON_VALUE)
    public String getUserCurrentInfo (@ApiParam("只需要传用户名userName")@RequestBody PageInfos pageInfos);
}
